<template>
  <div>
    <h2>HomeIndex</h2>

  </div>
</template>

<script>

export default {
  beforeRouteEnter(to, from, next) {
    console.log('beforeRouteEnter', '进入组件');
    next();
  },
  beforeRouteUpdate(to, from, next) {
    next();
  },
  beforeRouteLeave(to, from, next) {
    console.log('home-index-beforeRouteLeave', '离开组件');
    next();
  }
};
</script>